package com.tqw.auth.dao;

import com.tqw.auth.pojo.Client;
import com.tqw.auth.pojo.ClientLogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Van
 */
@Mapper
public interface LoginClientMapper {

    @Select("select id,username,email,phone,nickname,avatar from client where username=#{username}")
    Client loginClient(ClientLogin clientLogin);

    @Select("select password from client where username=#{username}")
    String selectClient(ClientLogin clientLogin);
}
